package cn.itcast.List;

import java.util.Enumeration;
import java.util.Vector;

public class Demo10_Vector {
	public static void main(String[] args) {
		Vector v=new Vector();
		v.addElement("aaa");
		v.addElement("bbb");
		v.addElement("ccc");
		System.out.println(v);
		System.out.println(v.elementAt(1));
		Enumeration ens=v.elements();
		while(ens.hasMoreElements()){
			System.out.println(ens.nextElement());
		}
	}
}
